lib/repo-pull: Fix free function for hash table
authorMatthew Leeds <matthew.leeds@endlessm.com>
Thu, 1 Mar 2018 00:06:31 +0000 (16:06 -0800)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 1 Mar 2018 14:10:24 +0000 (14:10 +0000)
commit2381ca0aa4db8d8cc9ab81acd761a9ee96279352
tree13f17c8ec5609ee13de4ce48b650548e1269337a
parent530043fcf6444f5751caa2c478d9411ab78e1698
lib/repo-pull: Fix free function for hash table

The "ref_original_commits" hash table uses string values, not variants,
so fix the free function passed to g_hash_table_new_full (). Since
g_variant_unref isn't NULL safe, this prevents an assertion failure when
a NULL value is inserted.

Dan Nicholson suggested this patch; I'm just submitting it because he's
busy.

Fixes https://github.com/ostreedev/ostree/issues/1433

Closes: #1474
Approved by: cgwalters
src/libostree/ostree-repo-pull.c